import request from '@/utils/request'

export function fetchUserList(query) {
  return request({
    url: '/getUserPage.do',
    method: 'post',
    params: query
  })
}
export function updateUserById(user) {
  return request({
    url: '/updateUserById.do',
    method: 'post',
    params: user
  })
}

export function deleteUserById(id) {
  console.log(id)
  return request({
    url: '/deleteUserById.do',
    method: 'post',
    params: id
  })
}

export function fetchTeamStaffList(query) {
  return request({
    url: '/getTeamStaffPage.do',
    method: 'post',
    params: query
  })
}
export function updateTeamStaffById(teamStaff) {
  return request({
    url: '/updateTeamStaffById.do',
    method: 'post',
    params: teamStaff
  })
}

export function deleteTeamStaffById(id) {
  return request({
    url: '/deleteTeamStaffById.do',
    method: 'post',
    params: id
  })
}
export function addTeamStaff(teamStaff) {
  return request({
    url: '/addTeamStaff.do',
    method: 'post',
    params: teamStaff
  })
}
